/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bground.collisions;

import bground.sprites.ExtendedSprite;
import external.golden.gamedev.object.Sprite;

/**
 *
 * @author s6_kustan_e
 */
public class PlayerFieldCollision extends external.golden.gamedev.object.collision.AdvanceCollisionGroup {

    public PlayerFieldCollision() {
        super();
    //    pixelPerfectCollision = true;
    }

    @Override
    public void collided(Sprite player, Sprite field) {
        ((ExtendedSprite)player).setSpeed(0, 0);
        ((ExtendedSprite)player).stopAndCenter();
        System.out.println("Ouch");

    }
}
